package com.ruoyi.eamp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eamp.mapper.EampEmailUserMapper;
import com.ruoyi.eamp.domain.EampEmailUser;
import com.ruoyi.eamp.service.IEampEmailUserService;

/**
 * 用户邮件关系表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-08
 */
@Service
public class EampEmailUserServiceImpl implements IEampEmailUserService 
{
    @Autowired
    private EampEmailUserMapper eampEmailUserMapper;

    /**
     * 查询用户邮件关系表
     * 
     * @param ueId 用户邮件关系表主键
     * @return 用户邮件关系表
     */
    @Override
    public EampEmailUser selectEampEmailUserByUeId(Long ueId)
    {
        return eampEmailUserMapper.selectEampEmailUserByUeId(ueId);
    }

    /**
     * 查询用户邮件关系表列表
     * 
     * @param eampEmailUser 用户邮件关系表
     * @return 用户邮件关系表
     */
    @Override
    public List<EampEmailUser> selectEampEmailUserList(EampEmailUser eampEmailUser)
    {
        return eampEmailUserMapper.selectEampEmailUserList(eampEmailUser);
    }

    /**
     * 新增用户邮件关系表
     * 
     * @param eampEmailUser 用户邮件关系表
     * @return 结果
     */
    @Override
    public int insertEampEmailUser(EampEmailUser eampEmailUser)
    {
        return eampEmailUserMapper.insertEampEmailUser(eampEmailUser);
    }

    /**
     * 修改用户邮件关系表
     * 
     * @param eampEmailUser 用户邮件关系表
     * @return 结果
     */
    @Override
    public int updateEampEmailUser(EampEmailUser eampEmailUser)
    {
        return eampEmailUserMapper.updateEampEmailUser(eampEmailUser);
    }

    /**
     * 批量删除用户邮件关系表
     * 
     * @param ueIds 需要删除的用户邮件关系表主键
     * @return 结果
     */
    @Override
    public int deleteEampEmailUserByUeIds(Long[] ueIds)
    {
        return eampEmailUserMapper.deleteEampEmailUserByUeIds(ueIds);
    }

    /**
     * 删除用户邮件关系表信息
     * 
     * @param ueId 用户邮件关系表主键
     * @return 结果
     */
    @Override
    public int deleteEampEmailUserByUeId(Long ueId)
    {
        return eampEmailUserMapper.deleteEampEmailUserByUeId(ueId);
    }
}
